﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Settle_check.aspx.cs" Inherits="Customer_Profile.eCard.Settle.Settle_check" %>
<%@ Register src="../../mainTop.ascx" tagname="mainTop" tagprefix="uc1" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>结算信息审核</title>
    <LINK href="/css/style.css" type="text/css" rel="stylesheet">
    <script language="javascript" type="text/javascript" src="/js/common.js"></script>
    <script language="javascript" type="text/javascript" src="/js/CalPopUp.js"></script>
    <script language="javascript">
        function checkSubmit() {
            return confirm("are you sure?");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>        
        <table border="1" width="100%">
            <tr>
                <td>                    
                    <uc1:mainTop ID="mainTop1" runat="server" />
                </td>
                <td></td>
            </tr>
            <tr>
                <td colspan="2"  valign="top">
                    <!--客户信息-->
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td bgcolor="#1765a7"><img src="/images/spacer.gif" width="1" height="3"></td>
						</tr>
						<tr>
							<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="12" class="bglist1"><img src="/images/arw_blu_rgt.gif" width="4" height="7"></td>
										<td class="bglist1">用户信息</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td><img src="/images/spacer.gif" width="1" height="1"></td>
						</tr>
					</table>                   
                    <asp:Repeater ID="rptCparty" runat="server">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        </HeaderTemplate>
                        <ItemTemplate>
                        <tr>
							<td class="bglist-3"  width="8%">客户姓名：</td>
							<td class="bglist-4"  width="17%">
								<%#Eval("cparty_name")%>                        
							</td>
							<td class="bglist-3"  width="8%">证件类型：</td>
							<td class="bglist-4" width="17%">
								<%#Eval("id_type")%>
							</td>
                            <td class="bglist-3"  width="8%">证件号码：</td>
							<td class="bglist-4"  width="17%">
								<%#Eval("id_no")%>
							</td>
							<td class="bglist-3"  width="8%">性别：</td>
							<td class="bglist-4" width="17%">
								<%#Eval("sex")%>
							</td>
						</tr>
                        <tr>
							<td class="bglist-3">生日：</td>
							<td class="bglist-4">
                               <%#Eval("birthday")%>
							</td>
							<td class="bglist-3">联系方式：</td>
							<td class="bglist-4">
								<%#Eval("phone")%> &nbsp; <%#Eval("email")%>
							</td>
                            <td class="bglist-3">邮编：</td>
							<td class="bglist-4">
                                <%#Eval("zipcode")%>
							</td>
							<td class="bglist-3">家庭住址：</td>
							<td class="bglist-4">
								<%#Eval("address")%>
							</td>
						</tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>        
                        </FooterTemplate>
                    </asp:Repeater>   
                    <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				        <tr>
					        <td><img height="5" src="../images/spacer.gif" width="1"></td>
				        </tr>
			        </table>    
                    <!--交易信息-->
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td bgcolor="#1765a7"><img src="/images/spacer.gif" width="1" height="3"></td>
						</tr>
						<tr>
							<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="12" class="bglist1"><img src="/images/arw_blu_rgt.gif" width="4" height="7"></td>
										<td class="bglist1">交易信息</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td><img src="/images/spacer.gif" width="1" height="1"></td>
						</tr>
					</table>
                    <asp:Repeater ID="rptDeals" runat="server">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        </HeaderTemplate>
                        <ItemTemplate>
                        <tr>
							<td class="bglist-3"  width="8%">产品编码：</td>
							<td class="bglist-4"  width="17%">
								<%#Eval("procduct_name")%>
							</td>
							<td class="bglist-3"  width="8%">到期操作：</td>
							<td class="bglist-4"  width="17%">
								<%#Eval("due_prodName")%>
							</td>
                            <td class="bglist-3"  width="8%">到期操作说明：</td>
							<td class="bglist-4"  width="17%">
								<%#Eval("due_prodremark")%>
							</td>
							<td class="bglist-3"  width="8%">卡号：</td>
							<td class="bglist-4" width="17%">
								<%#Eval("card_no")%>
							</td>
						</tr>
                        <tr>
							<td class="bglist-3" >购买金额：</td>
							<td class="bglist-4" >
								<%#Eval("initial_amount")%>                        
							</td>
							<td class="bglist-3" >应收金额：</td>
							<td class="bglist-4">
								<%#Eval("should_amount")%>
							</td>
                            <td class="bglist-3" >标准折扣：</td>
							<td class="bglist-4" >
								<%#Eval("stand_discount")%>
							</td>
							<td class="bglist-3" >实际折扣：</td>
							<td class="bglist-4">
								<%#Eval("real_discount")%>
							</td>
						</tr>
                        <tr>
							<td class="bglist-3" >起息日：</td>
							<td class="bglist-4" >
								<%#Eval("value_date")%>                        
							</td>
							<td class="bglist-3" >到期日：</td>
							<td class="bglist-4">
								<%#Eval("due_date")%>
							</td>
                            <td class="bglist-3" >到期金额：</td>
							<td class="bglist-4" >
								<font color="red"><%#Eval("due_amount")%></font>
							</td>
							<td class="bglist-3" >折扣差价：</td>
							<td class="bglist-4">
								<%#Eval("amount_spread")%>
							</td>
						</tr>                       
                        <tr>
							<td class="bglist-3" >销售员：</td>
							<td class="bglist-4" >
								<%#Eval("dealer")%>
							</td>
							<td class="bglist-3" >是否代理销售：</td>
							<td class="bglist-4">
								<%#Eval("if_agentsale")%>
							</td>
                            <td class="bglist-3" >代理名称：</td>
							<td class="bglist-4" >
								<%#Eval("sale_agent_name")%>
							</td>
							<td class="bglist-3" >是否特殊购买：</td>
							<td class="bglist-4">
								<%#Eval("if_isEspecial")%>
							</td>
						</tr>
                        <tr>
							<td class="bglist-3" >特殊购买说明：</td>
							<td class="bglist-4" >
								<%#Eval("especial_remark")%>
							</td>
							<td class="bglist-3" >是否是展期：</td>
							<td class="bglist-4">
                            <font color="red"><%#Eval("if_isExtension")%></font>
							</td>
                            <td class="bglist-3">展期编号：</td>
							<td class="bglist-4">
                                <a href='/eCard/Match/ExtendOriginalDeal.aspx?extend_id=<%#Eval("extend_id")%>' target="_blank"><%#Eval("extend_id")%></a>
							</td>
                            <td class="bglist-3" >销售地区：</td>
							<td class="bglist-4">
								<%#Eval("entity")%>
							</td>							
						</tr>
                        <tr>
                            <td class="bglist-3" >备注：</td>
							<td class="bglist-4" colspan="7">
								<%#Eval("remark")%>
							</td>
                        </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				        <tr>
					        <td><img height="5" src="../images/spacer.gif" width="1"></td>
				        </tr>
			        </table>    
                    <!--汇款信息-->
                    <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
                        <tr>
							<td bgcolor="#1765a7"><img src="/images/spacer.gif" width="1" height="3"></td>
						</tr>
				        <tr>
					        <td class="bglist1">
						        <table cellSpacing="0" cellPadding="0" width="100%" border="0">
							        <tr>
								        <td class="bglist1" width="12"><IMG height="7" src="/images/arw_blu_rgt.gif" width="4"></td>
								        <td class="bglist1">汇款信息</td>
							        </tr>
						        </table>
					        </td>
				        </tr>
				        <tr>
					        <td>						  
                                  <dx:ASPxGridView ID="gridTransfer1" runat="server" Width="100%" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                      CssPostfix="Office2003Blue">
                                      <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                          <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                                          </LoadingPanelOnStatusBar>
                                          <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                                          </LoadingPanel>
                                      </Images>
                                      <ImagesFilterControl>
                                          <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                                          </LoadingPanel>
                                      </ImagesFilterControl>
                                      <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                          CssPostfix="Office2003Blue">
                                          <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                          </Header>
                                          <LoadingPanel ImageSpacing="10px">
                                          </LoadingPanel>
                                      </Styles>
                                      <StylesEditors>
                                          <ProgressBar Height="25px">
                                          </ProgressBar>
                                      </StylesEditors>
                                      <Columns>
                                            <dx:GridViewDataColumn FieldName="transfer_id" VisibleIndex="0" Caption="编号" />                        
                                            <dx:GridViewDataColumn FieldName="account_name" VisibleIndex="1" Caption="账户名" />                        
                                            <dx:GridViewDataColumn FieldName="bank_name" VisibleIndex="2" Caption="银行名称" />                        
                                            <dx:GridViewDataColumn FieldName="account_no" VisibleIndex="3" Caption="账户号" />
                                            <dx:GridViewDataColumn FieldName="transfer_type" VisibleIndex="4" Caption="类别" />
                                            <dx:GridViewDataColumn FieldName="transfer_amount" VisibleIndex="5" Caption="金额" />
                                            <dx:GridViewDataColumn FieldName="transfer_date" VisibleIndex="6" Caption="付款日期" />
                                            <dx:GridViewDataColumn FieldName="to_account" VisibleIndex="7" Caption="转入账户" />
                                            <dx:GridViewDataColumn FieldName="remark" VisibleIndex="8" Caption="备注"  />
                                            <dx:GridViewDataColumn Caption="匹配号" VisibleIndex="9">
                                                <DataItemTemplate>
                                                    <a href='/eCard/Match/netbank_matachinfo.aspx?netbank_seqno=<%#Eval("netbank_seqno") %>' target="_blank" ><%#Eval("netbank_seqno") %></a>
                                                </DataItemTemplate>
                                            </dx:GridViewDataColumn>                            
                                        </Columns>
                                        <Settings ShowFooter="True" />
                                        <TotalSummary>
                                             <dx:ASPxSummaryItem FieldName="transfer_amount" SummaryType="Sum" DisplayFormat="c"/>                                     
                                        </TotalSummary>
                                  </dx:ASPxGridView>
					        </td>
				        </tr>
			        </table>        
                    <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				        <tr>
					        <td><img height="5" src="../images/spacer.gif" width="1"></td>
				        </tr>
			        </table>    
                    <!--结算信息-->
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td bgcolor="#1765a7"><img src="/images/spacer.gif" width="1" height="3"></td>
						</tr>
						<tr>
							<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="12" class="bglist1"><img src="/images/arw_blu_rgt.gif" width="4" height="7"></td>
										<td class="bglist1">结算信息</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td><img src="/images/spacer.gif" width="1" height="1"></td>
						</tr>
					</table>
                    <asp:Repeater ID="rptSettleDeals" runat="server">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        </HeaderTemplate>
                        <ItemTemplate>
                        <tr>
							<td class="bglist-3"  width="8%">结算编码：</td>
							<td class="bglist-4"  width="17%">
								<%#Eval("settle_id")%>                        
							</td>
							<td class="bglist-3"  width="8%">结算状态：</td>
							<td class="bglist-4"  width="17%">
								<%#Eval("settle_status")%>
							</td>
                            <td class="bglist-3"  width="8%">结算金额：</td>
							<td class="bglist-4"  width="17%">
								<font color="red"><%#Eval("settle_amount")%></font>
							</td>
							<td class="bglist-3"  width="8%">结算手续比率：</td>
							<td class="bglist-4" width="17%">
								<%#Eval("settle_commission_percent")%>&nbsp;&nbsp;/&nbsp;&nbsp;
                                <font color="red"><%#Eval("settle_percent")%></font>
							</td>
						</tr>
                        <tr>
							<td class="bglist-3" >结算手续费：</td>
							<td class="bglist-4" >
								<font color="red"><%#Eval("settle_fee")%></font>
							</td>
							<td class="bglist-3" >支付金额：</td>
							<td class="bglist-4">
								<font color="red"><%#Eval("pay_amount")%></font>
							</td>                           
                            <td class="bglist-3" >回款账户名：</td>
							<td class="bglist-4" >
								<%#Eval("account_name")%>
							</td>
							<td class="bglist-3" >回款账号：</td>
							<td class="bglist-4">
								<%#Eval("account_no")%>
							</td>
						</tr>
                        <tr>
							<td class="bglist-3" >银行名称：</td>
							<td class="bglist-4" >
								<%#Eval("bank_name")%>                        
							</td>
							<td class="bglist-3" >分行/支行：</td>
							<td class="bglist-4">
								<%#Eval("bank_branch")%>/<%#Eval("bank_sub_branch")%>
							</td>
                            <td class="bglist-3" >回购方：</td>
							<td class="bglist-4" >
								<%#Eval("settle_agent_name")%>
							</td>
							<td class="bglist-3" >省份：</td>
							<td class="bglist-4">
								<%#Eval("location")%>
							</td>
						</tr>
                        <tr>					
							<td class="bglist-3" >城市：</td>
							<td class="bglist-4" >
								<%#Eval("city")%>
							</td>
							<td class="bglist-3" >录入人：</td>
							<td class="bglist-4">
								<%#Eval("input_userid")%>
							</td>
                            <td class="bglist-3" >录入日期：</td>
							<td class="bglist-4" >
								<%#Eval("input_date")%>
							</td>
							<td class="bglist-3" >提交总部日期：</td>
							<td class="bglist-4">
								<%#Eval("submit_date")%>
							</td>
						</tr>
                        <tr>
							<td class="bglist-3" >备注：</td>
							<td class="bglist-4" colspan="7" >
								<%#Eval("remark")%>
							</td>							
						</tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>                     
                    <!--附件列表-->                 
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td class="bglist-3"  width="8%">附件列表：</td>
                            <td>
                                <asp:Repeater ID="rptAttach" runat="server">
                                    <ItemTemplate>
                                       <a href='<%#Eval("attach_url")%>' target="_blank"><%#Eval("view_name")%></a> &nbsp;
                                    </ItemTemplate>                            
                                </asp:Repeater>
                            </td>
						</tr>						
					</table>    
                    <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				        <tr>
					        <td><img height="5" src="../images/spacer.gif" width="1"></td>
				        </tr>
			        </table>  
                    <!--卡帐信息-->
                    <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				        <tr>
					        <td bgColor="#1765a7"><IMG height="3" src="/images/spacer.gif" width="1"></td>
				        </tr>
				        <tr>
					        <td><IMG height="1" src="/images/spacer.gif" width="1"></td>
				        </tr>
			        </table>
                    <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				        <tr>
					        <td class="bglist1">
						        <table cellSpacing="0" cellPadding="0" width="100%" border="0">
							        <tr>
								        <td class="bglist1" width="12"><IMG height="7" src="/images/arw_blu_rgt.gif" width="4"></td>
								        <td class="bglist1">卡账信息 
                                            <font color="blue">
                                            (余额：<%=card_balance%>)
                                            </font>
								        </td>
							        </tr>
						        </table>
					        </td>
				        </tr>
				        <tr>
					        <td>
                               <dx:ASPxGridView ID="gridCflows1" runat="server" Width="100%"
                                       CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                       CssPostfix="Office2003Blue">
                                       <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                           <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                                           </LoadingPanelOnStatusBar>
                                           <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                                           </LoadingPanel>
                                       </Images>
                                       <ImagesFilterControl>
                                           <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                                           </LoadingPanel>
                                       </ImagesFilterControl>
                                       <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                           CssPostfix="Office2003Blue">
                                           <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                           </Header>
                                           <LoadingPanel ImageSpacing="10px">
                                           </LoadingPanel>
                                       </Styles>
                                       <StylesEditors>
                                           <ProgressBar Height="25px">
                                           </ProgressBar>
                                       </StylesEditors>
                                       <Columns>
                                            <dx:GridViewDataColumn FieldName="cflow_no" VisibleIndex="0" Caption="资金编号" Width="5%" />                        
                                            <dx:GridViewDataColumn FieldName="cflow_date" VisibleIndex="1" Caption="发生日期" />                        
                                            <dx:GridViewDataColumn FieldName="amount" VisibleIndex="2" Caption="发生金额" />                        
                                            <dx:GridViewDataColumn FieldName="card_balance" VisibleIndex="3" Caption="卡内余额" />
                                            <dx:GridViewDataColumn FieldName="cflow_type_name" VisibleIndex="4" Caption="类别" />                                    
                                            <dx:GridViewDataColumn FieldName="remark" VisibleIndex="5" Caption="备注" Width="20%" />                                    
                                            <dx:GridViewDataColumn Caption="附件" VisibleIndex="6">
                                                <DataItemTemplate>
                                                    <a href='<%#Eval("cflow_attach_url") %>' target="_blank" ><%#Eval("attach_view") %></a>
                                                </DataItemTemplate>
                                            </dx:GridViewDataColumn>
                                        </Columns>
                                        <Settings ShowFooter="True" />
                                        <TotalSummary>
                                             <dx:ASPxSummaryItem FieldName="amount" SummaryType="Sum" DisplayFormat="c"/>                                     
                                        </TotalSummary>
                                   </dx:ASPxGridView>
					        </td>
				        </tr>
			        </table>
                </td>
            </tr>       
            <tr>
                <td>
                    通过备注：<asp:TextBox ID="TextBox1" runat="server" width="70%" class="input2"></asp:TextBox> 
                    <asp:Button ID="Button1" runat="server" Text="通过审核" OnClientClick="return checkSubmit();" onclick="Button1_Click" />
                </td>
                <td>
                   退回原因：<asp:TextBox ID="TextBox2" runat="server"  width="70%" class="input2"></asp:TextBox>
                   <asp:Button ID="Button2" runat="server" Text="审核退回" OnClientClick="return checkSubmit();" onclick="Button2_Click" />  
                </td>
            </tr>
            <tr>                
                <td colspan="2">
                   提示信息： <asp:Label ID="lbWarning" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
        </table>
        <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
			<tr>
				<td><img height="5" src="../images/spacer.gif" width="1"></td>
			</tr>
		</table>  
    </div>
    </form>
</body>
</html>
<%=strScript %>          
